package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.result.Result;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Auther: zhaoss
 * @Date: 2023/5/4 - 05 - 04 - 18:58
 * @Description: com.sky.service
 * @version: 1.0
 */
public interface ShoppingCartService {

    /**
     * 新增购物车
     * @return
     */
    public Result add( ShoppingCartDTO dto);

    /**
     * 查询购物车
     * @return
     */
    public Result getCar();

    /**
     * 清空购物车
     * @return
     */
    public Result deleteCar();

    /**
     * 减少一个商品
     * @param dto
     * @return
     */
    public Result subCar(ShoppingCartDTO dto);
}
